package com.xiaozhou.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.joda.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder

public class StockUpdownDomain {
    private String code;

    private String name;

    private BigDecimal preClosePrice;

    private BigDecimal tradePrice;
    private BigDecimal increase;
    private BigDecimal upDown;
    private BigDecimal amplitude;
    private Long tradeAmt;
    private BigDecimal tradeVol;

    /**
     * 日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")//springmvc的注解-》json格式数据
    private LocalDateTime curDate;
}

